import request from '@/utils/request'

export function getMessageRecords(params) {
  return request({
    url: '/online/contact-us/message-record/records', params, method: 'GET'
  })
}

export function addRemark(params) {
  return request({
    url: `/online/contact-us/message-record/add-remark?messageRecordId=${params.messageRecordId}&remark=${params.remark}`, method: 'POST'
  })
}

export function getNoticeEmailList(pageNo, pageSize) {
  return request({
    url: `/online/contact-us/notice/email/list?pageNo=${pageNo}&pageSize=${pageSize}`, method: 'GET'
  })
}

export function addNoticeEmail(email) {
  return request({
    url: `/online/contact-us/notice/email?email=${email}`, method: 'POST'
  })
}

export function deleteNoticeEmail(email) {
  return request({
    url: `/online/contact-us/notice/email?email=${email}`, method: 'DELETE'
  })
}
